/**
 * API模块统一入口
 * 提供所有API接口的统一导出
 */

// 导入各个模块的API
import authApi from './auth'
import questApi from './quest'
import battleApi from './battle'
import characterApi from './character'
import sectApi from './sect'
import itemApi from './item'
import systemApi from './system'
import equipmentApi from './equipment'
import specialEquipmentApi from './specialEquipment'
import adventureApi from './adventure'
import activityApi from './activity'
import rankApi from './rank'
import { request, get, post, put, del } from './request'

// 统一导出所有API
export {
  // 基础请求方法
  request,
  get,
  post,
  put,
  del,
  
  // 各模块API
  authApi,
  questApi,
  battleApi,
  characterApi,
  sectApi,
  itemApi,
  systemApi,
  equipmentApi,
  specialEquipmentApi,
  adventureApi,
  activityApi,
  rankApi
}

// 默认导出包含所有API的对象
export default {
  // 基础请求方法
  request,
  get,
  post,
  put,
  delete: del,
  
  // 用户认证
  auth: authApi,
  
  // 任务系统
  quest: questApi,
  
  // 战斗系统
  battle: battleApi,
  
  // 角色属性技能
  character: characterApi,
  
  // 物品背包
  item: itemApi,
  
  // 门派伙伴
  sect: sectApi,
  
  // 系统道具
  system: systemApi,
  
  // 装备系统
  equipment: equipmentApi,
  // 特殊装备
  specialEquipment: specialEquipmentApi,
  
  // 游历页面
  adventure: adventureApi,
  
  // 活跃度任务
  activity: activityApi,
  
  // 排行榜
  rank: rankApi
}

// 便捷的API调用方法
// 使用示例：
// import api from '@/api'
// api.auth.guestLogin(deviceId)
// api.quest.getQuestList()
// api.battle.startBattle(enemyId, formationId)
// api.character.getSkillList()
// api.sect.getSectList()
// api.system.getNotice()